<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title></title>
	</head>
	<body>
		
	</body>
	<script type="text/javascript">
		// ES6 允许在大括号里面,直接写入变量和函数,作为对象的属性和方法
		let name = "清华";
		let change = function(){
			console.log("可以改变你");
		}
		const school = {
			name,
			change,
			
			// improve:function(){
			// 	console.log("可以提高你的技能");
			// }
			
			// 简写
			improve(){
				console.log("可以提高你的技能");
			}
		}
		console.log(school);// {name: "清华", change: ƒ, improve: ƒ}
		
	</script>
</html>
